package com.travel.sight.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.travel.common.utils.PageUtils;
import com.travel.common.utils.Query;

import com.travel.sight.dao.BrowseTimeDao;
import com.travel.sight.entity.BrowseTimeEntity;
import com.travel.sight.service.BrowseTimeService;


@Service("browseTimeService")
public class BrowseTimeServiceImpl extends ServiceImpl<BrowseTimeDao, BrowseTimeEntity> implements BrowseTimeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BrowseTimeEntity> page = this.page(
                new Query<BrowseTimeEntity>().getPage(params),
                new QueryWrapper<BrowseTimeEntity>()
        );

        return new PageUtils(page);
    }

}